package com.transfer.dao;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.transfer.entity.AccountInfo;

public class TransferDaoImpl extends HibernateDaoSupport implements TransferDao {

	@Override
	public boolean update(AccountInfo account) {
		try {
//System.out.println(account);
			super.getHibernateTemplate().update(account);
			return true;
		} catch (Exception e) {
			e.printStackTrace();
			return false;
		}
	}

	@Override
	public AccountInfo getAccount(int id) {
		// TODO Auto-generated method stub
		return super.getHibernateTemplate().get(AccountInfo.class, id);
	}

}
